home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d7 / fetch10.arc / FETCH.SLT < prev    next >
Encoding:
Text File  |  1991-07-30  |  314 b   |  23 lines

  1. main()
  2. {
  3. int fh;
  4. int chr;
  5.  
  6.     if (run("fetch", "fetch.lst", 2) > 0) {
  7.         return(1);
  8.     }
  9.  
  10.     fh = fopen("select.tmp", "r");
  11.     if (fh == 0) {
  12.         return(1);
  13.     }
  14.  
  15.     chr = fgetc(fh);
  16.     while (!feof(fh)) {
  17.         cputc(chr);
  18.         chr = fgetc(fh);
  19.     }
  20.     fclose(fh);
  21.  
  22. }
  23.